package com.edu.jsu.eduservice.controller;

import com.edu.jsu.commonutils.R;
import org.springframework.web.bind.annotation.*;

/**
 * @author 廖俊杰
 * @version 1.0
 * @date 2021/11/29 15:38
 */
@RestController
@RequestMapping("/eduservice/user")
public class LoginController {

    @PostMapping("/login")
    public R login() {
        return R.ok().data("token","admin");
    }

    @GetMapping("/info")
    public R info(){
        return R.ok().data("roles","[admin]").data("name","admin").data("avatar","https://img0.baidu.com/it/u=964231911,1680605089&fm=26&fmt=auto");
    }
}
